<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/common/jsp/taglibs-nojs-nocss.jsp"%>
<%@include file="/common/jsp/cssAndScript.jsp"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"+ request.getServerName() + ":" + request.getServerPort()+ path + "/";
%>
<base href="<%=basePath%>"/>
<%@include file="/pages/head.jsp"%>
<div id="main_container">
  <div id="container_border">
        <div class="window_1">
        	<div id="assistFee_div">
            	<h3 class="priceRulelist_title_pic_2">资源管理列表</h3>
            	<!-- <a class="btn_box btn_file_icon2"  href="javascript:void(0)" onclick="showDialog('资源新建','userManager/initAddResc',500,400)">新建</a> -->
        	</div>
        </div>
    <div class="window_bottom">
		<div id="pricerulemanage" style="height:450px;">         
            <table width="100%" border="0" cellpadding="0"  cellspacing="0" class="gridview"  id="pricerule_table">
                <thead>
                <tr class="title">
                    <td style="width: 150px;">序号</td>
                     <td >树形节点</td>
					<td >中文名称</td>
                    <td >资源路径</td>
                   <!-- <td >操作</td>-->
                </tr>
                </thead>
                <tbody class="mytbody">
                	<s:if test="rescList.size()==0">
                		<tr>
                			<td colspan="6" align="center">无记录</td>
                		</tr>
                	</s:if><s:else>
		                <s:iterator value="rescList" status="stat">
		                	<%String str = ""; %>
			                <tr>
			                    <td><s:property value="#stat.count"/></td>
			                     <td ><s:property value="tree"/></td>
			                    <td > 
			                    	<% 
			                    		int j = request.getAttribute("tree").toString().split("\\.").length;
			                    		for(int i = 0 ; i < j-1;i++ ){
			                    			str = str + " -- ";
			                    		}
			                    	%>
			                    	<%=str%><s:property value="cname"/></td>
			                    <td ><s:property value="string"/></td>
			                    <td >
									<!-- <a href="javascript:void(0)" onclick="showDialog('编辑用户','userManager/updateResc.action?resc.id=<s:property value="id"/>',500,400)">修改</a>		                    
			                    	<a href="userManager/deleteResc.action?resc.id=<s:property value="id"/>">删除</a> -->
			                    </td>
			                </tr>
		                </s:iterator>
                	</s:else>
                </tbody>
           </table>
        </div> 
    </div>
    </div>
    </div>
